package chapter_10_decorator.classic;

/**
 * @author yaochenglong
 * @date 2017/10/19
 */
public class Client {
    public static void main(String[] args) {

        IComponent component = new Decorator1(new ConcreteComponent());
        component.doSomething();

        component = new Decorator2(new ConcreteComponent());
        component.doSomething();
    }
}
